@import '../style/theme/color';
@import '../style/theme/variables';
@import '../style/mixins/index';

.devui-input-group {
  position: relative;
  display: table;
  border-collapse: separate;
}

.devui-input-group:not(.disabled):hover .devui-input-group-addon {
  border-color: $hover-control;
  background-color: $gray-2;
  font-weight: bold;
}

.devui-input-group:not(.disabled):hover .devui-form-control {
  border-color: $hover-control;
  border-right-color: $gray-1;
}

.devui-input-group:not(.disabled) .devui-input-group-addon:active {
  border-color: $hover-control;
  border-right-color: $gray-1;
  background-color: $gray-2;
}

.devui-input-group .devui-input-group-addon {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  color: $dark-1;
  text-align: center;
  background-color: $gray-3;
  border-top: 1px solid $gray-1;
  border-bottom: 1px solid $gray-1;
  border-right: 1px solid $gray-1;
  border-radius: 0 2px 2px 0;
  display: table-cell;
  transition: border-color ease-in-out 0.15s;
  cursor: pointer;
}

.devui-input-group .devui-form-control {
  cursor: pointer;
  display: block;
  width: 100%;
  height: 28px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: $dark-1;
  background-image: none;
  border: 1px solid $gray-1;
  border-radius: 2px 0 0 2px;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.devui-input-group.disabled .devui-form-control,
.devui-input-group.disabled .devui-input-group-addon {
  cursor: not-allowed;
  background-color: $disabled-bg;
}

svg.svg-icon-dot > path {
  fill: $dark-1;
}

.devui-form-control {
  outline: none;
}

.devui-upload-delete-file-button {
  position: absolute;
  top: calc(50% - 7px);
  right: 50px;
  cursor: pointer;
}

.devui-input-group.disabled .devui-upload-delete-file-button {
  cursor: not-allowed;
  pointer-events: none;
}
